<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        class A {
            constructor() {
                this.x = 1;
            }
            static print() {
                console.log(this.x);
            }
        }

        class B extends A {
            constructor() {
                super();
                this.x = 2;
            }
            static m() {
                super.print();
            }
        }

        B.x = 3;
        console.log(B.m());

    </script>

</head>
<body>

</body>
</html>